# # 类型转换函数
# result_one = int(3.6)  #将浮点型数据转换为整数
# print(result_one)
# result_two = int(False)     #将布尔型数据转换为整数
# print(result_two)
# result_thr = float(3)        #将整数数据转换为浮点型
# print(result_thr)
# result_fou = float("3.1415926")  #将字符串转换为浮点型
# print(result_fou)
#
# str_01 = "2"
# str_02 = "5"
# sum = int(str_01)+ int(str_02)
# print(sum)
#
# result_one = type(str_01)
# print(result_one)
# result_two = type(str_02)
# print(result_two)
# result_thr = type(sum)
# print(result_thr)

# # 单一判断
# age = int(input("请输入年龄："))
# if age >= 3:
#     print("可以上幼儿园了")

# # 两个判断
# age = int(input("请输入年龄："))
# if age >= 3:
#         print("可以上幼儿园了")
# else:
#     print("你不符合可以上幼儿园了")

# # if...else语句
# u_name  = input("请输入用户名:")
# pwd = input("请输入密码:")
# if u_name =="admin" and pwd =="123":
#   print("登录成功！即将进入页面。")
# else:
#   print("您输入用户名或者密码错误，请重新输入。")

# # if...elif...else语句
# score = int(input("请输入您的会员积分:"))
# if score == 0:
#     print("注册会员")
# elif 0 < score <= 2000:
#     print("铜牌会员")
# elif 2000 < score <= 10000:
#     print("银牌会员")
# elif 10000 < score <= 30000:
#     print("金牌会员")
# else:
#     print('砖石会员')


# # 条件嵌套
# year = int(input("请输入年份:"))
# month = int(input("请输入月份:"))
# if month in [1,3,5,7,8,10,12]:
#     print(f"{year} 年 {month} 月有31天")
# if month in [4,6,9,11]:
#     print(f"{year} 年 {month} 月有30天")
# elif month == 2:
#     if year % 400 == 0 or (year % 4 == 0 and year % 100 != 0):
#         print(f"{year} 年 {month} 月有29天")
#     else:
#         print(f"{year} 年 {month} 月有28天")

# for num in range(100):
#     if num % 7 == 0:
#         print("逢七拍手游戏")
#         print(num)
# else:
#     print("我不是七的倍数")

# # while语句
# i = 1
# result = 1
# while i <= 10:
#     result *= i
#     i += 1
# print(result)

# # while循环嵌套
# i = 1
# while i <= 5:
#     j = 1
#     while j <= i:
#         print("*",end=' ')
#         j += 1
#     print(end="\n")
#     i += 1

# # for循环嵌套
# for i in range(1, 6):
#     for j in range(i):
#         print("*",end=' ')
#     print()

# # break语句
# i = 0
# max = 5
# while i < 10:
#     i += 1
#     print("------------")
#     if i == max:
#         break
#     print(i)

# continue语句
words = "千里之行始于足下"
for word in words:
  print("------")
  if word == "行":
      continue
  print(word)







